{{- if .Values.prometheus.longtermRetentionDays }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
  name: prometheus-longterm
  namespace: d8-monitoring
  {{- include "helm_lib_module_labels" (list . (dict "app" "prometheus")) | nindent 2 }}
data:
  prometheus.yaml.gz: {{ (tpl (.Files.Get "files/prometheus_longterm_config.tpl") . ) | b64enc }}
{{- end }}
